﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;


namespace SponsorshipManager.DataAccess
{

    interface IDbProvider
    {
        string ConnectionString { get; set; }
        /*Run stored proecures with and without parameters.*/
        int ExecStoredProc(string spName, List<IDataParameter> DataParams, string Token);
        int ExecStoredProc(string spName, List<IDataParameter> DataParams, out DataTable result, string Token);
        IDataAdapter DataAdapter();
        IDataReader DataReader();
        IDataParameter Parameter();


        bool Connected { get; set; }
        bool PersistConnections { get; set; }
    }


}
